package com.joker.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *  会话表
 * </p>
 *
 * @author joker
 * @since 2021-06-03
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ChatSession {

    private static final long serialVersionUID=1L;

    /**
     * session_id
     */
    @TableId(value = "session_id", type = IdType.AUTO)
    private Integer sessionId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 到用户id
     */
    private String toUserId;


    /**
     * 未读消息数
     */
    private Integer unReadCount;
}
